<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
		<link rel="stylesheet" type="text/css" href="styles/css/global.css">	
		<SCRIPT type="text/javascript" src="commons/dojo.js"></SCRIPT>
<script type="text/javascript">
	dojo.require("dojo.widget.validate");
	 function submitCheck(){
	 	 if (userForm.all("user.userName").value.length<1){
			      alert('“用户名”不能为空！');
			      return false;
		}
		if (userForm.all("user.password").value.length<1){
			      alert('“密 码”不能为空！');
			      return false;
		}
		if (userForm.all("user.trueName").value.length<1){
			      alert('“真实姓名”不能为空！');
			      return false;
		}
		if (userForm.all("user.job").value.length<1){
			      alert('“职 务”不能为空！');
			      return false;
		}
	 	userForm.submit();
	 	
	 }
</script>
</head>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td class="localTdBg">
					当前位置：	
					
						用户管理 -- 创建新用户
					
				</td>
			</tr>
			
		</table>
<body>
<html:form method="post"  action="user.do?method=doCreateUser">
<table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" id="addFormTable">
	<tr>
					<td colspan="2" class="fontLight1">
						加*号的为必填项或必选项  
					</td>
	</tr>

	<tr>
		<td width="25%" id="addFormTableL">用户名</td>
		<td width="75%" id="addFormTableR"><input id="user.userName" name="user.userName" class="formInput"  type="text" value="${user.userName }">*</td>
	</tr>
	<tr>
		<td width="25%" id="addFormTableL">密码</td>
		<td><input name="user.password" type="password" class="formInput" value="${user.password }" >*</td>
	</tr>
	<tr>
		<td width="25%" id="addFormTableL">真实姓名</td>
		<td width="75%" id="addFormTableR"><input name="user.trueName" class="formInput"  type="text" value="${user.trueName }">*</td>
	</tr>
	<tr>
		<td width="25%" id="addFormTableL">类别</td>
		<td width="75%" id="addFormTableR">
			<select name="user.type" class="selectbox"
			 value="${user.type }">
				<option value="2">经理</option>
				<option value="3">员工</option>
			</select>
		*</td>
	</tr>
	<tr>
		<td width="25%" id="addFormTableL">职务</td>
		<td width="75%" id="addFormTableR"><input name="user.job" class="formInput"  type="text" value="${user.job }">*</td>
	</tr>
 	<tr>
 		<td width="25%">
						&nbsp;
		</td>
 		<td width="75%">
		 <input name="Submit" type="button" class="formSubmit" value="提交" onclick="javascript:submitCheck()">
         <input onclick="userForm.reset();" type="reset" class="formSubmit" value="重置">
		</td>
	</tr>
</table>
</html:form>
</body>
</html>